:root {
  --globalbg: #51d6a9;
}
#root {
  width: 100%;
  flex-grow: 1;
  display: flex;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* 自定义样式 */
.layout {
  min-height: 100%;
  flex: 1;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 20px 20px; /* Adjust the size of the grid */
}

.react-resizable-handle {
  background-color: #2962ff;
  border: 1px solid white;
  width: 12px;
  height: 12px;
}

/* 网格区 */
.grid-item {
  position: absolute;
  cursor: move;
}
.shape-point {
  z-index: 3;
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid var(--globalbg);
  border-radius: 5px;
  background-color: #fff;
  transform: translate(-40%, -30%);
  cursor: ne-resize;
}
.shape-point.t,
.shape-point.b {
  width: 30px;
  cursor: n-resize;
}
.shape-point.r,
.shape-point.l {
  height: 30px;
  cursor: e-resize;
}
.shape-point.t {
  transform: translate(-50%, -50%);
}
.shape-point.r {
  transform: translate(-20%, -50%);
}
.shape-point.b {
  transform: translate(-50%, -30%);
}
.shape-point.l {
  transform: translate(-45%, -50%);
}
.shape-point.lt,
.shape-point.rb {
  cursor: nw-resize;
}
.shape-point.rt,
.shape-point.rb {
  transform: translate(-30%, -30%);
}
.shape-modal {
  position: absolute;
  top: 0;
  left: 0;
}
.shape-modal-select {
  opacity: 0.1;
  top: 2px;
  left: 2px;
}
.shape-modal-select,
.shape-modal-change {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}
.shape-modal-select.active {
  background-color: var(--globalbg);
}
.shape-modal-change.selectActive {
  border: 2px solid var(--globalbg);
}
.shape-modal-change.hoverActive {
  border: 2px dashed var(--globalbg);
}
